home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Applications
/
Compression
/
Opener
/
Source
/
Opener.table
< prev
next >
Wrap
Text File
|
1994-03-08
|
4KB
|
74 lines
#
# These suffix/command pairs tell Opener how to unpack archive files.
# Some abbreviations in the command are expanded before execution:
# unpack: ... => mkdir $t; cd $t; ...
# $f => the current filename
# $t => the temporary filename; if $f = /a/b/c.suff, $t is /tmp/O_c
# $p/... => look for ... in the internal directory;
# e.g., $p/unsit => /LocalApps/Opener.app/unsit
# You can edit the following commands (for example, to use new
# or different archivers). To add new filetypes, look at
# Opener.app/README.rtfd, or in Controller.m
#
Unpack:
.tar unpack: tar xf $f
.tar.gz $p/gunzip < $f | (mkdir $t; cd $t; tar xf -)
.tar.z $p/gunzip < $f | (mkdir $t; cd $t; tar xf -)
.tar.Z $p/gunzip < $f | (mkdir $t; cd $t; tar xf -)
.tar-gz $p/gunzip < $f | (mkdir $t; cd $t; tar xf -)
.tar-z $p/gunzip < $f | (mkdir $t; cd $t; tar xf -)
.tar-Z $p/gunzip < $f | (mkdir $t; cd $t; tar xf -)
.shar unpack: sed '1,/[^:\#]/d' $f | /bin/sh
.shar.gz $p/gunzip < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
.shar.z $p/gunzip < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
.shar.Z $p/gunzip < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
.shar-gz $p/gunzip < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
.shar-z $p/gunzip < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
.shar-Z $p/gunzip < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
.uu unpack: uudecode $f; open *
.lzh unpack: $p/xlharc xf $f >> /tmp/console.log
.arc unpack: $p/arc ox $f >> /tmp/console.log
.sit unpack: $p/unsit -u $f >> /tmp/console.log
.bin unpack: $p/unsit -u $f >> /tmp/console.log
.hqx unpack: $p/mcvert -ux $f >> /tmp/console.log
.zip unpack: $p/unzip -o $f >> /tmp/console.log
.zoo unpack: $p/booz x $f >> /tmp/console.log
.gz $p/gunzip < $f > $t
.z $p/gunzip < $f > $t
.Z $p/gunzip < $f > $t
.arj unpack: $p/unarj e $f >> /tmp/console.log
-gz $p/gunzip < $f > $t
-z $p/gunzip < $f > $t
-Z $p/gunzip < $f > $t
-arj unpack: $p/unarj e $f >> /tmp/console.log
.compressed /usr/ucb/zcat < $f | (mkdir $t; cd $t; tar xf -)
# These commands create archive files. The semantics are as above, but:
# $d => the deepest directory path (e.g., /a/b/{c,d,e} => /a/b)
# $f => the filenames, less the $d prefix portion.
# $F => the filenames
# $t => the tmp file, /tmp/O_..., where ... => first file in $f.
# $p/... => look for ... in the internal directory;
# e.g., $p/unsit => /LocalApps/Opener.app/unsit
# In general, the archiving command will look like:
# (cd $d; ... $f > $t; echo $t done)
#
Pack:
.tar (cd $d; tar cf - $f > $t; echo $t done)
.tar.gz (cd $d; tar cf - $f | $p/gzip > $t; echo $t done)
.tar.z (cd $d; tar cf - $f | $p/gzip > $t; echo $t done)
.tar.Z (cd $d; tar cf - $f | compress > $t; echo $t done)
.shar (cd $d; shar $f > $t; echo $t done)
.shar.gz (cd $d; shar $f | $p/gzip > $t; echo $t done)
.shar.z (cd $d; shar $f | $p/gzip > $t; echo $t done)
.shar.Z (cd $d; shar $f | compress > $t; echo $t done)
.uu (cd $d; uuencode $f $f > $t; echo $t done)
.lzh (cd $d; $p/xlharc c $t $f >> /tmp/console.log; echo $t done)
.arc (cd $d; $p/arc a $t $f >> /tmp/console.log; echo $t done)
.zip (cd $d; $p/zip $t $f >> /tmp/console.log; echo $t done)
.compressed (cd $d; tar cf - $f | compress > $t; echo $t done)
# drop a directory on Opener and pick "submit" to automatically
# ftp the .tar.Z and README files to NeXT archive sites and
# alert the archivists. NB, directory must include a README file.
remote (cd $d; $p/Submit $f)